package com.healthcloud.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.healthcloud.dao.TestprojectitemDao;
import com.healthcloud.entity.TestprojectitemEntity;
import com.healthcloud.service.TestprojectitemService;
import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;



@Service("testprojectitemService")
@Transactional
public class TestprojectitemServiceImpl implements TestprojectitemService {
	@Autowired
	private TestprojectitemDao testprojectitemDao;

	@Override
	public TestprojectitemEntity queryObject(String testItemCode){
		return testprojectitemDao.queryObject(testItemCode);
	}

	@Override
	public List<TestprojectitemEntity> queryList(TestprojectitemEntity bean, PageParam pageParam){
		return testprojectitemDao.queryList(bean, pageParam);
	}

	@Override
	public int queryTotal(TestprojectitemEntity bean){
		return testprojectitemDao.queryTotal(bean);
	}

	@Override
	public void save(TestprojectitemEntity testprojectitem){
		testprojectitemDao.save(testprojectitem);
	}

	@Override
	public void update(TestprojectitemEntity testprojectitem){
		testprojectitemDao.update(testprojectitem);
	}

	@Override
	public void delete(String testItemCode){
		testprojectitemDao.delete(testItemCode);
	}

	@Override
	public void deleteBatch(String[] testItemCodes){
		testprojectitemDao.deleteBatch(testItemCodes);
	}

	@Override
	public List<TestprojectitemEntity> queryByName(String testItemName) {
		return testprojectitemDao.queryByName(testItemName);
	}

	@Override
	public List<TestprojectitemEntity> queryListMsg(String testKindCode) {
		return testprojectitemDao.queryListMsg(testKindCode);
	}

	@Override
	public TestprojectitemEntity searchByName(String testItemName) {
		return  testprojectitemDao.searchByName(testItemName);
	}

	@Override
	public TestprojectitemEntity queryByItemCode (String testItemCode){
		return testprojectitemDao.queryByItemCode(testItemCode);
	}

	@Override
	public List<TestprojectitemEntity> queryByItemCodes (List<String> testItemCode){
		return testprojectitemDao.queryByItemCodes(testItemCode);
	}
}
